// Definition of the ServerSocket class

#ifndef ServerSocket_class
#define ServerSocket_class

#include "Socket.h"


class ServerSocket : public Socket
{
public:

	ServerSocket ( int port );
	ServerSocket (){};
	virtual ~ServerSocket();

	const ServerSocket& operator << ( const std::string& ) const;
	const ServerSocket& operator >> ( std::string& ) const;

	const ServerSocket& receive( char**,int & ,int&) const;
	const ServerSocket& send( const char*,int ) const;
	const ServerSocket& send2( const char*,int ) const;
	void accept ( ServerSocket& );

};


#endif
